/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketManager.model;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 *
 * @author luchenyuxx
 */
@Entity
@PrimaryKeyJoinColumn(name="TWOROLESEVENT_ID")
public class ChangeProblemStateEvent extends TwoRolesEvent{

    public ChangeProblemStateEvent() {
    }

    @Override
    public String toString() {
        return super.getOperator().userName+" change the state of problem "+super.getTarget().title
                +" to "+super.getTarget().state+" at "+date.toString(); //To change body of generated methods, choose Tools | Templates.
    }    
}
